package com.raports;

import javafx.scene.layout.StackPane;

/**
 *
 * @author Sawior
 */
public class RaportScreensFramework extends StackPane {

    public static final String RAPORT_BUTTONS = "Raporty";
    public static final String RAPORT_BUTTONS_FXML = "raportMenu.fxml";
    public static final String RAPORT_PASSES = "Przepustki";
    public static final String RAPORT_PASSES_FXML = "passesRaport.fxml";
    public static final String RAPORT_CARS = "Pojazdy";
    public static final String RAPORT_CARS_FXML = "carsPercent.fxml";
    public static final String RAPORT_SPACES = "Stanowiska";
    public static final String RAPORT_SPACES_FXML = "spacesPercent.fxml";
    public static final String RAPORT_TARRIFS = "Taryfy";
    public static final String RAPORT_TARRIFS_FXML = "tarrifPercent.fxml";
    public static final String RAPORT_CLIENTS = "Klienci";
    public static final String RAPORT_CLIENTS_FXML = "ClientsRaport.fxml";
    public static final String RAPORT_FINANCE = "Finanse";
    public static final String RAPORT_FINANCE_FXML = "FinanceRaport.fxml";
    private RaportScreensController screenController;

    public RaportScreensFramework(RaportMenuWrapperScreenController mainPanelController) {
        screenController = new RaportScreensController(mainPanelController);
        screenController.loadScreen(RaportScreensFramework.RAPORT_BUTTONS, RaportScreensFramework.RAPORT_BUTTONS_FXML);
        screenController.loadScreen(RaportScreensFramework.RAPORT_PASSES, RaportScreensFramework.RAPORT_PASSES_FXML);
        screenController.loadScreen(RaportScreensFramework.RAPORT_CARS, RaportScreensFramework.RAPORT_CARS_FXML);
        screenController.loadScreen(RaportScreensFramework.RAPORT_TARRIFS, RaportScreensFramework.RAPORT_TARRIFS_FXML);
        screenController.loadScreen(RaportScreensFramework.RAPORT_FINANCE, RaportScreensFramework.RAPORT_FINANCE_FXML);
        screenController.loadScreen(RaportScreensFramework.RAPORT_CLIENTS, RaportScreensFramework.RAPORT_CLIENTS_FXML);
        screenController.loadScreen(RaportScreensFramework.RAPORT_SPACES, RaportScreensFramework.RAPORT_SPACES_FXML);
        screenController.setScreen(RaportScreensFramework.RAPORT_BUTTONS);
        this.getChildren().addAll(screenController);

    }

    public RaportScreensController getScreensController() {
        return screenController;
    }

}
